local game = require "club.threecard.hbsl"

local M = game.ui.activity()

function M:ctor()
    self.res = "club.threecard.hbsl/backgrounds/ingame.b:ingame_bg"
    -- local caishen = game.require "ui.background.caishen"
    -- self.caishen = caishen.new();
    local changjing = game.require "ui.background.changjing"
    self.changjing = changjing.new();
    local renwu = game.require "ui.background.renwu"
    self.renwu = renwu.new();
    local yanhua = game.require "ui.background.yanhua"
    self.yanhua = yanhua.new();
end

function M:load()
    self:super("load")
    game.coroutine.step();
    self.changjing:load()
    self.changjing:set_parent(self.changjing_root, false);
    game.coroutine.step();
    self.renwu:load();
    self.renwu:set_parent(self.renwu_root, false);
    game.coroutine.step();
    self.yanhua:load();
    self.yanhua:set_parent(self.yanhua_root, false);
    -- game.coroutine.step();
    -- self.caishen:load();
    -- self.caishen:set_parent(self.caishen_root, false);
end

return M